/* 
 * File:   RealParameterCommand.h
 * Author: Gab'z
 *
 * Created on 5 juin 2012, 12:26
 */

#ifndef REALPARAMETERCOMMAND_H
#define	REALPARAMETERCOMMAND_H

#include "ParametersCommand.h"

namespace calculator {

    class RealParameterCommand : public ParametersCommand {
        friend class CommandMap;

    public:
        virtual RealParameterCommand* clone() const;

        void apply(Parameters* parameters) const;
        virtual ~RealParameterCommand();
        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);
        
    protected:
        RealParameterCommand(const std::string name);
        RealParameterCommand(const RealParameterCommand& orig);
    };

}

#endif	/* REALPARAMETERCOMMAND_H */

